package com.apps.ftapp.model;

import java.util.List;

/**
 * Created by lyli on 2017/10/17.
 */

public class MyCouponModel {


    /**
     * success : 1
     * coupons : {"success":1,"coupons":[{"id":"4","code":"HKHhlhjjd","type":"minus","status":"receive","rate":"5.00","batchId":"","userId":"1","deadline":"1513753535","targetType":"","targetId":"0","orderId":"0","orderTime":"0","createdTime":"1508483135","receiveTime":"0","manjian":"30","value":"5.00","starttime":"2017-10-20","endtime":"2017-12-20","title":"消费满30元可用"},{"id":"5","code":"HKHhlhjjd","type":"minus","status":"receive","rate":"6.00","batchId":"","userId":"1","deadline":"1513753535","targetType":"","targetId":"0","orderId":"0","orderTime":"0","createdTime":"1508483135","receiveTime":"0","manjian":"10","value":"6.00","starttime":"2017-10-20","endtime":"2017-12-20","title":"消费满10元可用"}]}
     */

    private int success;
    private CouponsBeanX coupons;

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public CouponsBeanX getCoupons() {
        return coupons;
    }

    public void setCoupons(CouponsBeanX coupons) {
        this.coupons = coupons;
    }

    public static class CouponsBeanX {
        /**
         * success : 1
         * coupons : [{"id":"4","code":"HKHhlhjjd","type":"minus","status":"receive","rate":"5.00","batchId":"","userId":"1","deadline":"1513753535","targetType":"","targetId":"0","orderId":"0","orderTime":"0","createdTime":"1508483135","receiveTime":"0","manjian":"30","value":"5.00","starttime":"2017-10-20","endtime":"2017-12-20","title":"消费满30元可用"},{"id":"5","code":"HKHhlhjjd","type":"minus","status":"receive","rate":"6.00","batchId":"","userId":"1","deadline":"1513753535","targetType":"","targetId":"0","orderId":"0","orderTime":"0","createdTime":"1508483135","receiveTime":"0","manjian":"10","value":"6.00","starttime":"2017-10-20","endtime":"2017-12-20","title":"消费满10元可用"}]
         */

        private int success;
        private List<CouponsBean> coupons;

        public int getSuccess() {
            return success;
        }

        public void setSuccess(int success) {
            this.success = success;
        }

        public List<CouponsBean> getCoupons() {
            return coupons;
        }

        public void setCoupons(List<CouponsBean> coupons) {
            this.coupons = coupons;
        }

        public static class CouponsBean {
            /**
             * id : 4
             * code : HKHhlhjjd
             * type : minus
             * status : receive
             * rate : 5.00
             * batchId :
             * userId : 1
             * deadline : 1513753535
             * targetType :
             * targetId : 0
             * orderId : 0
             * orderTime : 0
             * createdTime : 1508483135
             * receiveTime : 0
             * manjian : 30
             * value : 5.00
             * starttime : 2017-10-20
             * endtime : 2017-12-20
             * title : 消费满30元可用
             */

            private String id;
            private String code;
            private String type;
            private String status;
            private String rate;
            private String batchId;
            private String userId;
            private String deadline;
            private String targetType;
            private String targetId;
            private String orderId;
            private String orderTime;
            private String createdTime;
            private String receiveTime;
            private String manjian;
            private String value;
            private String starttime;
            private String endtime;
            private String title;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getRate() {
                return rate;
            }

            public void setRate(String rate) {
                this.rate = rate;
            }

            public String getBatchId() {
                return batchId;
            }

            public void setBatchId(String batchId) {
                this.batchId = batchId;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getDeadline() {
                return deadline;
            }

            public void setDeadline(String deadline) {
                this.deadline = deadline;
            }

            public String getTargetType() {
                return targetType;
            }

            public void setTargetType(String targetType) {
                this.targetType = targetType;
            }

            public String getTargetId() {
                return targetId;
            }

            public void setTargetId(String targetId) {
                this.targetId = targetId;
            }

            public String getOrderId() {
                return orderId;
            }

            public void setOrderId(String orderId) {
                this.orderId = orderId;
            }

            public String getOrderTime() {
                return orderTime;
            }

            public void setOrderTime(String orderTime) {
                this.orderTime = orderTime;
            }

            public String getCreatedTime() {
                return createdTime;
            }

            public void setCreatedTime(String createdTime) {
                this.createdTime = createdTime;
            }

            public String getReceiveTime() {
                return receiveTime;
            }

            public void setReceiveTime(String receiveTime) {
                this.receiveTime = receiveTime;
            }

            public String getManjian() {
                return manjian;
            }

            public void setManjian(String manjian) {
                this.manjian = manjian;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public String getStarttime() {
                return starttime;
            }

            public void setStarttime(String starttime) {
                this.starttime = starttime;
            }

            public String getEndtime() {
                return endtime;
            }

            public void setEndtime(String endtime) {
                this.endtime = endtime;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }
        }
    }
}
